﻿@model UALSender.Web.Models.UserProfile[]
@{
    ViewBag.Title = "Profiles";
}
<div id="top">
</div>
<h2>
    Profiles</h2>
<p>
    <span id="selectAllDiv" runat="server">Select all
        <input type="checkbox" id="chbSelectAll" />
    </span>
</p>
<div id="sortMsg">
</div>
@using (Html.BeginForm("Save", "Profiles"))
{  
    <input type="submit" name="Save" value="Save" />
    <span style="float: right;">Total: @Model.Count()</span>
    <table id="empTable">
        <thead>
            <tr>
                <th>
                    Profile Id
                </th>
                <th>
                    Name
                </th>
                <th>
                    Password
                </th>
                <th>
                    Min age
                </th>
                <th>
                    Max age
                </th>
                <th>
                    Intro sender
                </th>
                <th>
                    Winks sender
                </th>
                <th>
                    Search type
                </th>
                <th>
                    Sending limit
                </th>
                <th>
                    Videos
                </th>
                <th>
                    Send videos
                </th>
                <th>
                    Location
                </th>
                <th>
                    Send messages
                </th>
                <th>
                    &nbsp;
                </th>
            </tr>
        </thead>
        <tbody>
            @for (int i = 0; i < Model.Count(); i++)
            {
                ViewData[Model[i].ProfileId + "RowNumber"] = i;
                @Html.Partial("_ProfileRow", Model[i], ViewData)
            }
        </tbody>
    </table> 
    <br />

 
}
<div id="message">
    <a href="#top">Scroll to top</a></div>
